package modelLayer;
import java.util.ArrayList;

public class Dvd {
    private int barcode;
    private String title;
    private String artist;
    private String publicationDate;
    public ArrayList<Copy> copies; 
    private int copiesNo;
    
    public Dvd(int barcode, String title, String artist, String publicationDate) {
        this.barcode = barcode;
        this.title = title;
        this.artist = artist;
        this.publicationDate = publicationDate;
        copies = new ArrayList<>();
    }
    
    public void setBarcode(int barcode) {
        this.barcode = barcode;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public void setArtist(String artist) {
        this.artist = artist;
    }
    
    public void setPublicationDate(String date) {
        this.publicationDate = date;
    }
    
    public int getBarcode() {
        return barcode;
    }
    
    public String getTitle() {
        return title;
    }
    
    public String getArtist() {
        return artist;
    }
    
    public String getPublicationDate() {
        return publicationDate;
    }
    
    public void setCopiesNo(int no) {
        this.copiesNo = no;
    }
    
    public int getCopiesNo() {
        return copiesNo;
    }
    
}
